<?php
//model输出数据的形式，请使用$_data['板块']['数据名']去命名。(待定)
//建议使用函数形式输出，controller再重新赋值

//设置php输出页面为utf8
header("Content-type: text/html; charset=utf-8");

//原本是写在页面的，为了让网页模板更加简介，所以写在controller中
$system_part="recruitment";//定位当前板块
$system_part_level = "term";



//======================================================
//网站公用的数据，这里拷一份。可以inculde model的即可。
//======================================================



//引入seo的model
include_once(THEME_PATH_."/controller/model/seo_info.php");
include_once(THEME_PATH_."/controller/model/plate_list.php");

$data['plate_list']=plate_list();

//获取横幅数据：banner
$nowpagebanner=7;
$banner_list=select_lines_all_items($table_Prefix."detail","listorder desc , nid desc ","publish = 1 and banner_term='".$nowpagebanner."' and belong = 'banner'","");


//读出网站单表数据site表的信息
$data['site ']      = select_one_line_all_items($table_Prefix . "site", " 1=1");
//读出网站单表数据contact表的信息
$data['contact']    = select_one_line_all_items($table_Prefix . "contact", " 1=1");
//读出所有友情链接
$data['friendlink'] = select_lines_all_items($table_Prefix . "link", "listorder desc,nid desc", "publish = '1' ", "");



//专门供footer使用的信息读取
include_once(THEME_PATH_."/controller/model/footer_detail_list.php");

//#1获取当前板信息
$data['now_plate']=select_one_line_all_items($table_prefix."plate","mid = '$system_part'");



?>
